package com.dianxin.farm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 头条新闻
    * </p>
*
* @author xukai
* @since 2020-12-04
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @ApiModel(value="HeadingNews对象", description="头条新闻")
    public class HeadingNews implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String heading;

            @ApiModelProperty(value = "缩略图地址")
    private String imageUrl;

            @ApiModelProperty(value = "头条状态0--未发布草稿  1--发布")
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime publishTime;

            @ApiModelProperty(value = "头条主体内容")
    private String content;

    private Integer creatorId;

            @ApiModelProperty(value = "是否置顶0未置顶 1--置顶")
    private Boolean topFlag;


}
